<%@ page language="java" pageEncoding="UTF-8"%>
<script type="text/javascript">
 $(function(){
	 $('#fczy_add_dept').combotree({
			lines:true,
			url:'deptAction!do_combotree.action',
			panelHeight:260,
			required:true,
			editable:false,
			idField:'id',
			textField:'text',
			parentField:'pid',
			 onBeforeSelect: function(node) {
		            if (!$(this).tree('isLeaf', node.target)) {
		                return false;
		            }
		        },
		        onClick: function(node) {
		            if (!$(this).tree('isLeaf', node.target)) {
		                $('#fczy_add_dept').combo('showPanel');
		            }
		        },
			onSelect:function(node){
				$('#fczy_add_wd').combobox('clear');
				$('#fczy_add_wd').combobox('reload','wdxxAction!do_combobox.action?deptId='+node.id);
			}
		}); 
	 $('#fczy_add_dept').combotree('setValue','${sessionInfo.deptid}');
	 $('#fczy_add_wd').combobox({
		 url:'wdxxAction!do_combobox.action?deptId=${sessionInfo.deptid}',
		 required:true,
		 valueField:'cid',
		 textField:'cname'
	 });
 });
</script>
<div align="center" style="padding:5px">
	<form method="post" id="fczy_add_form">
		<input type="hidden" name="createUserId" value="${sessionInfo.userId}" />
		<table  class="t2">
			<tr>
				<th width="140" >所属机构：</th>
				<td width="200">
					<input type="text" id="fczy_add_dept"  name="deptId" style="width:200px" />
				</td>
				
			</tr>
			<tr>
				<th>所属网点:</th>
				<td>
					<input type="text" id="fczy_add_wd" name="wdid" style="width:200px"/>
				</td>
			</tr>
			<tr>
				<th>房产占用费（月租金）:</th>
				<td>
					<input type="text" name="czczyf" class="easyui-numberbox"  data-options="precision:2,required:'true'"style="width:200px"/>
				</td>
			</tr>
		</table>
	</form>
</div>